def bubble_sort(list):
    for i in range(0, len(list) - 1):
        for j in range(0, len(list) - i - 1):
            if list[j] > list[j + 1]:
                list[j], list[j + 1] = list[j + 1], list[j]
    reture list


a = [22, 4, 63, 54, 3, 18]
sorted=bubble_sort(a)


